<nav class="nav nav-tabs nav-stacked">
    <a class="nav-link {{ active_class(if_route('admin')) }}" href="{{ route('admin') }}"><i
            class="fa fa-home " aria-hidden="true"></i></a>
    <a class="nav-link {{ active_class(if_route('site.role.index',$site)) }}"
       href="{{ route('site.role.index',$site) }}">角色列表</a>
    <a class="nav-link {{ active_class(if_route('site.role.create',$site)) }}"
       href="{{ route('site.role.create',$site) }}">添加角色</a>
    @if (if_route('site.role.edit'))
        <a class="nav-link {{ active_class(if_route('site.role.edit')) }}">编辑角色</a>
    @endif
</nav>
<div class="alert alert-primary" role="alert">
    <i class="fa fa-info-circle" aria-hidden="true"></i>
    你正在编辑{{$site->title}}站点的角色
</div>
